package com.amigo.online.provider.adv.service.impl;

import java.util.List;
import java.util.Set;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.amigo.online.common.param.result.AdvHomePageInfo;
import com.amigo.online.common.param.result.AdvInfo;
import com.amigo.online.provider.adv.mapper.AdvHomeSourceMapper;
import com.amigo.online.provider.adv.service.AdvHomeSourceService;

@Service
public class AdvHomeSourceServiceImpl implements AdvHomeSourceService {

    @Autowired
    AdvHomeSourceMapper advHomeSourceMapper;

    @Override
    public List<AdvInfo> getAdvSourceBySizeAndIds(double ratio, Set<Integer> advSet) {
        return advHomeSourceMapper.getAdvSourceBySizeAndIds(ratio, advSet);
    }

    @Override
    public List<AdvHomePageInfo> getAdvSourceByDefaultSizeAndIds(List<Long> advSet) {
        //  Auto-generated method stub
        return advHomeSourceMapper.getAdvSourceByDefaultSizeAndIds(advSet);
    }


}
